<!DOCTYPE html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html lang="en">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>法和药业后台管理系统</title>
    
        <!-- Bootstrap framework -->
            <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
            <link rel="stylesheet" href="bootstrap/css/bootstrap-responsive.min.css" />
        <!-- jQuery UI theme-->
            <link rel="stylesheet" href="lib/jquery-ui/css/Aristo/Aristo.css" />
		<!-- gebo blue theme-->
            <link rel="stylesheet" href="css/blue.css" id="link_theme" />
        <!-- breadcrumbs-->
            <link rel="stylesheet" href="lib/jBreadcrumbs/css/BreadCrumb.css" />
        <!-- tooltips-->
            <link rel="stylesheet" href="lib/qtip2/jquery.qtip.min.css" />
        <!-- notifications -->
            <link rel="stylesheet" href="lib/sticky/sticky.css" />    
        <!-- splashy icons -->
            <link rel="stylesheet" href="img/splashy/splashy.css" />
		<!-- colorbox -->
            <link rel="stylesheet" href="lib/colorbox/colorbox.css" />
		<!-- CLEditor -->
           <!--  <link rel="stylesheet" href="lib/CLEditor/jquery.cleditor.css" /> -->
			<link rel="stylesheet" href="lib/kindeditor/default.css" />
        <!-- main styles -->
            <link rel="stylesheet" href="css/style.css" />
			
           <!--  <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans" /> -->
	
        <!-- Favicon -->
            <link rel="shortcut icon" href="favicon.ico" />
		<!-- 通用css -->
          <link rel="stylesheet" href="css_fahe/manage.css" />
        <!--[if lte IE 8]>
            <link rel="stylesheet" href="css/ie.css" />
            <script src="js/ie/html5.js"></script>
			<script src="js/ie/respond.min.js"></script>
        <![endif]-->
		
		<script>
			//* hide all elements & show preloader
			document.documentElement.className += 'js';
		</script>
    </head>
    <body>
		<div id="maincontainer" class="clearfix">
			<!-- header -->
            <header>
             	<%@ include file="../maninc/managepagestop.jsp"%>
            </header>
                <div class="container-fluid" id="contentdiv">
			    <div class="row-fluid">
			    <div class="span12" >
				    <div class="span3" id="leftsilber">
				    	<%@ include file="../maninc/managepagesleft.jsp"%>	
				    </div>
				    <div class="span9">
				    	
							<div class="chat_box">
								<div class="row-fluid">
									<div class="span12 chat_sidebar">
									
										<div class="chat_heading clearfix">
											添加药品
										</div>
										  	<form method="post" action="doadddrug" enctype="multipart/form-data" class="form-horizontal">
										  	
											  <div class="row-fluid">
											  	    <div class="span6">
														<label class="control-label" for="inputEmail">  药品名称：</label>
														<input name="drugname" class="span6">
												    </div>
												    <div class="span6">
												    	<label class="control-label" for="inputEmail">药品种类：</label>
														<select id="drugtype" name="drugtype" class="span6">
														
														  <c:forEach items="${drugtypes}" var="du">  
														  	<option value ="${du.id }">${du.name }</option>
														  </c:forEach>
								 						</select>
												    </div>
											  </div>
											  
										  	<div class="row-fluid">
												    <div class="span6">
												    	<label class="control-label" for="pic1">药品图片：</label>
														<input name="pic1" type="file" class="span6">
												    </div>
												    <div class="span6">
														<label class="control-label" for="inputEmail">药品规格：</label>
														<input name="norm" class="span6">
												    </div>
											  </div>
											  
										  	  <div class="row-fluid">
												    <div class="span6">
												    	  <label class="control-label" for="inputEmail">挂网价：</label>
														<input name="netprice" class="span6">
												    </div>
												    <div class="span6">
														<label class="control-label" for="inputEmail">挂网零售价：</label>
														<input name="netretailprice" class="span6">
												    </div>
											  </div>
											  
											   <div class="row-fluid">
												    <div class="span6">
												    	  <label class="control-label" for="inputEmail">最高零售价：</label>
														<input name="topretailprice" class="span6">
												    </div>
												    <div class="span6">
														<label class="control-label" for="inputEmail">批发价：</label>
														<input name="netretailprice" class="span6">
												    </div>
											  </div>
											  
											 <div class="row-fluid">
												    <div class="span12">
												    	<label class="control-label" for="inputEmail">产品简介：</label>
														<textarea name="remark" rows="2" class="span9"></textarea>
												    </div>
											  </div>
											
											<!-- 这里是kindeditor的空间 -->
											 <div class="row-fluid">
												    <div class="span12">
												    	<label class="control-label" for="inputEmail">产品详情：</label>
														<textarea name="content" style="width:951px;height:400px;visibility:hidden;"></textarea>
												    </div>
											  </div>
											
											 <div class="row-fluid">
												    <div class="span12">
												    	<div class="span2">
												    	</div>
												   		<input type="submit" name="save" value="提交" />
														<input type="reset" name="reset" value="重置" />
												    </div>
											  </div>
										</form>
										
										
									</div>
								</div>
							</div>
							
						</div>
				    </div>
			    </div>
			   </div>
        
        
            <script src="js/jquery.min.js"></script>
			<!-- smart resize event -->
			<script src="js/jquery.debouncedresize.min.js"></script>
			<!-- hidden elements width/height -->
			<script src="js/jquery.actual.min.js"></script>
			<!-- js cookie plugin -->
			<script src="js/jquery_cookie.min.js"></script>
			<!-- main bootstrap js -->
			<script src="bootstrap/js/bootstrap.min.js"></script>
			<!-- tooltips -->
			<script src="lib/qtip2/jquery.qtip.min.js"></script>
			<!-- jBreadcrumbs -->
			<script src="lib/jBreadcrumbs/js/jquery.jBreadCrumb.1.1.min.js"></script>
			<!-- fix for ios orientation change -->
			<script src="js/ios-orientationchange-fix.js"></script>
            <!-- scroll -->
			<script src="lib/antiscroll/antiscroll.js"></script>
			<script src="lib/antiscroll/jquery-mousewheel.js"></script>
			
			<script charset="utf-8" src="lib/kindeditor/kindeditor-min.js"></script>
			<script charset="utf-8" src="lib/kindeditor/lang/zh_CN.js"></script>
			<script>
				var editor;
				KindEditor.ready(function(K) {
					editor = K.create('textarea[name="content"]', {
						uploadJson : 'updatefiles',
		                fileManagerJson : 'upFilesManage',
						allowFileManager : true
				})});
				$(document).ready(function() {
					$("#collapseDrug").addClass('in');
					$("#collapseDrug").css('height','auto');
					setTimeout('$("html").removeClass("js")',1000);
				});
			</script>
		
		</div>
	</body>
</html>